<?php

namespace Part14_ObserverMode\Code2;

// 抽象观察者
abstract class Observer
{
    protected $name;
    protected $sub;

    public function __construct($name, $sub)
    {
        $this->name = $name;
        $this->sub = $sub;
    }

    public abstract function update();

}